#include "Config.h"

#include <cassert>

string Config::s_configFilePath;

Config::Config() {
    m_configFile = ConfigFile::parseConfig(s_configFilePath.c_str());

    m_locale = m_configFile->getString("locale.output");

    m_regionIgnoreUp = m_configFile->getFloat("region.ignore.up");
    m_regionIgnoreDown = m_configFile->getFloat("region.ignore.down");

    m_dataDirPath = m_configFile->getString("path.dir.data");

    m_keywordPath = m_configFile->getString("path.file.keyword").c_str();

    string knn = m_configFile->getString("knn");
    m_modelPath += m_dataDirPath + "/" + knn + ".model";
}
